import App from './App'


import Vue from 'vue'
import store from './store'
import mixin from './utils/mixin.js'
import uView from 'uview-ui'

Vue.mixin(mixin)
Vue.use(uView)
Vue.config.productionTip = false
App.mpType = 'app'
uni.$u.config.unit = 'rpx'

//定义全局函数，用于判断本地是否存在用户信息
Vue.prototype.getGlobalUers=function(key){
	var userInfo=uni.getStorage("uesrInfo");
	if(userInfo!==null&&userInfo!=undefined&&userInfo!=""){
		return true;
	}else{
		return null;
	}
}

const app = new Vue({
    ...App,
	store
})
// 引入请求封装，将app参数传递到配置中
require('./utils/request.js')(app)

app.$mount()


